package ptaPartTwo;

import java.math.*;
import java.util.Scanner;

public class FiveSeven{

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);	
		BigInteger a=new BigInteger("0");
		while(input.hasNext()){
			String s=input.nextLine();
			if(s.equalsIgnoreCase("e"))
				break;
			BigInteger b=new BigInteger(s);
			a=a.add(b);
		}System.out.println(a);
}
}
